package edu.whut.method;
/*
替换，切割
 */
public class demo04 {
    public static void main(String[] args) {
        String s = "anhuiligonganhuTMDi";
        s = s.replace("TMD","***");
        System.out.println(s);

        String str = "192,168,1,1";
        String[] st = str.split(",");
        for (int i = 0; i < st.length; i++) {
            System.out.println(st[i]);
        }
    }
}
